<?php

class Memory extends Component implements IMemory
{
    const FILE   = 'File';
    
    private $_adapter = null;
    
    public function __construct()
    {
        parent::__construct();
    }
    
    public function setStorage($storage, $storageOption)
    {
        $this->_adapter = Zend_Memory::factory($storage, $storageOption);
        
        return $this;
    }
    
    public function create($data = null)
    {
        return $this->_adapter->create($data);
    }
    
    public function createLocked($data = null)
    {
        return $this->_adapter->createLocked($data);
    }
    
    public function setMinSize($size)
    {
        $this->_adapter->setMinSize($size);
    }
    
    public function getMinSize()
    {
        return $this->_adapter->getMinSize();
    }
    
    public function setMemoryLimit($size)
    {
        $this->_adapter->setMemoryLimit($size);
    }
}

?>